#include<bits/stdc++.h>

using namespace std;

int main()
{
    string a, b; cin >> a >> b;
    string s;

    reverse(a.begin(), a.end());
    reverse(b.begin(), b.end());

    int n = a.size(), m = b.size();
    vector<int> tmp(n + m);

    // 1.无进位相乘相加
    for(int i = 0; i < n; i ++)
    {
        for(int j = 0; j < m; j ++)
        {
            tmp[i + j] += (a[i] - '0') * (b[j] - '0');
        }
    }

    // 2.处理进位
    int c = 0;
    for(auto x : tmp)
    {
        c += x;
        s += c % 10 + '0';
        c /= 10;
    }

    // 3.处理前导0
    while(s.size() > 1 && s.back() == '0') s.pop_back();

    reverse(s.begin(), s.end());

    cout << s << endl;

    return 0;
}